package com.jzo2o.orders.base.handler;

import com.jzo2o.orders.base.model.dto.OrderSnapshotDTO;
import com.jzo2o.statemachine.core.StatusChangeEvent;
import com.jzo2o.statemachine.core.StatusChangeHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

//@Component("order_payed")
@Slf4j
public class OrderPayedHandler implements StatusChangeHandler<OrderSnapshotDTO> {

    /**
     * 订单支付处理逻辑
     * @param bizId 业务id
     * @param statusChangeEventEnum 状态变更事件
     * @param bizSnapshot 快照
     */
    @Override
    public void handler(String bizId, StatusChangeEvent statusChangeEventEnum, OrderSnapshotDTO bizSnapshot) {
        log.info("支付事件处理逻辑开始: 订单号:{}",bizId);
    }
}
